/************************************************************
   Copyright 2008 Abhinav Pobbati

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*************************************************************/

#pragma once

#pragma unmanaged
#include <Animation/Ragdoll/Penetration/hkaDetectRagdollPenetration.h>
#include <Animation/Ragdoll/Controller/RigidBody/hkaKeyFrameHierarchyUtility.h>
#include <Animation/Ragdoll/PoseMatching/hkaPoseMatchingUtility.h>
#include <Animation/Ragdoll/Instance/hkaRagdollInstance.h>
#include <Animation/Ragdoll/Controller/PoweredChain/hkaRagdollPoweredChainController.h>
#include <Animation/Ragdoll/Controller/PoweredConstraint/hkaRagdollPoweredConstraintController.h>
#include <Animation/Ragdoll/Controller/RigidBody/hkaRagdollRigidBodyController.h>
#include <Animation/Ragdoll/Utils/hkaRagdollUtils.h>
#pragma managed

#include "Havok4Xna/Animation/HkaAnimation.h"

namespace Havok4Xna {
	namespace Animation {
		namespace Ragdoll {
			public ref class HkaDetectRagdollPenetration : public INativeReference {
			public:
				ref class BonePenetration sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(BonePenetration, hkaDetectRagdollPenetration::BonePenetration)
				};

				ref class Output sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(Output, hkaDetectRagdollPenetration::Output)
				};

				ref class Setup sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(Setup, hkaDetectRagdollPenetration::Setup)
				};

			internal:
				HK_CLASS_INTERNALS(HkaDetectRagdollPenetration, hkaDetectRagdollPenetration)
			};

			public ref class HkaKeyFrameHierarchyUtility : public INativeReference {
			public:
				ref class BodyData sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(BodyData, hkaKeyFrameHierarchyUtility::BodyData)
				};

				ref class ControlData sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(ControlData, hkaKeyFrameHierarchyUtility::ControlData)
				};

				ref class KeyFrameData sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(KeyFrameData, hkaKeyFrameHierarchyUtility::KeyFrameData)
				};

				ref class Output sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(Output, hkaKeyFrameHierarchyUtility::Output)
				};

				ref class WorkElem sealed : public INativeReference {
				internal:
					HK_CLASS_INTERNALS(WorkElem, hkaKeyFrameHierarchyUtility::WorkElem)
				};

			internal:
				HK_CLASS_INTERNALS(HkaKeyFrameHierarchyUtility, hkaKeyFrameHierarchyUtility)
			};

			public ref class HkaPoseMatchingUtility : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkaPoseMatchingUtility, hkaPoseMatchingUtility)
			};

			public ref class HkaRagdollInstance : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkaRagdollInstance, hkaRagdollInstance)
			};

			public ref class HkaRagdollPoweredChainController : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkaRagdollPoweredChainController, hkaRagdollPoweredChainController)
			};

			public ref class HkaRagdollPoweredConstraintController : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkaRagdollPoweredConstraintController, hkaRagdollPoweredConstraintController)
			};

			public interface class HkaRagdollRaycastInterface : public INativeReference {
				
			};

			public ref class HkaRagdollRigidBodyController : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkaRagdollRigidBodyController, hkaRagdollRigidBodyController)
			};

			public ref class HkaRagdollUtils : public INativeReference {
			internal:
				HK_CLASS_INTERNALS(HkaRagdollUtils, hkaRagdollUtils)
			};
		}
	}
}
